﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using GalaSoft.MvvmLight;

namespace IkeCode.WP7.Wakeup.Common
{
    public class BaseViewModel : ViewModelBase
    {
        #region Common Properties

        public object Data;

        private string _pageTitle;
        public string PageTitle
        {
            get { return _pageTitle; }
            set
            {
                if (_pageTitle == value)
                    return;

                _pageTitle = value;
                RaisePropertyChanged(() => PageTitle);
            }
        }

        #endregion

        #region Public Methods

        public virtual void SetData(object data)
        {
            this.Data = data;
        }

        #endregion
    }
}
